package com.example;

import java.util.*;

public class Demo {
    public static void main(String[] args) throws IllegalAccessException, InstantiationException, ClassNotFoundException {
//        Person student = new Student();
//        System.out.println(student.id);
//        System.out.println(((Student) student).id);
//        System.out.println(student instanceof Student);
//        System.out.println(student instanceof Person);
//        System.out.println(((Person)student).getClass());
        Class.forName("Ts").newInstance();
    }
    static class Person{
        Integer id = new Integer(1001);
    }
    static class Student extends Person{
        Integer id = new Integer(1002);
    }
    static class Ts{
        Ts(int i){
            System.out.println(i);
        }
    }

}
